#import <Foundation/Foundation.h>
#import <RongIMLibCore/RongIMLibCore.h>
NS_ASSUME_NONNULL_BEGIN


@interface XMRCManager : NSObject
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;
- (id)copy NS_UNAVAILABLE;
- (id)mutableCopy NS_UNAVAILABLE;
+ (XMRCManager *)sharedInstance;
- (void)connectWithToken:(NSString *)token
               timeLimit:(int)timeLimit
                dbOpened:(void (^)(RCDBErrorCode code))dbOpenedBlock
                 success:(void (^)(NSString *userId))successBlock
                   error:(void (^)(RCConnectErrorCode errorCode))errorBlock;

- (void)updateUserCacheUserId:(NSString *)userId
                             alias:(NSString *)alias
                              name:(NSString *)name
                       portraitUri:(NSString *)portraitUri
                             extra:(NSString *)extra;

@end
NS_ASSUME_NONNULL_END
